<?php

namespace sil29\VitrineBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * LigneCommande
 */
class LigneCommande
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var integer
     */
    private $quantite;

    /**
     * @var \sil29\VitrineBundle\Entity\Commande
     */
    private $commande;

    /**
     * @var \sil29\VitrineBundle\Entity\ElementFacturable
     */
    private $elementFacturable;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set quantite
     *
     * @param integer $quantite
     * @return LigneCommande
     */
    public function setQuantite($quantite)
    {
        $this->quantite = $quantite;

        return $this;
    }

    /**
     * Get quantite
     *
     * @return integer 
     */
    public function getQuantite()
    {
        return $this->quantite;
    }

    /**
     * Set commande
     *
     * @param \sil29\VitrineBundle\Entity\Commande $commande
     * @return LigneCommande
     */
    public function setCommande(\sil29\VitrineBundle\Entity\Commande $commande = null)
    {
        $this->commande = $commande;

        return $this;
    }

    /**
     * Get commande
     *
     * @return \sil29\VitrineBundle\Entity\Commande 
     */
    public function getCommande()
    {
        return $this->commande;
    }

    /**
     * Set elementFacturable
     *
     * @param \sil29\VitrineBundle\Entity\ElementFacturable $elementFacturable
     * @return LigneCommande
     */
    public function setElementFacturable(\sil29\VitrineBundle\Entity\ElementFacturable $elementFacturable = null)
    {
        $this->elementFacturable = $elementFacturable;

        return $this;
    }

    /**
     * Get elementFacturable
     *
     * @return \sil29\VitrineBundle\Entity\ElementFacturable 
     */
    public function getElementFacturable()
    {
        return $this->elementFacturable;
    }
    
    public function __toString() {
    	return $this->id;
    }
}
